package com.bawei.system.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

@Data
@ApiModel("索引信息")
public class IndexInfo {

    @ApiModelProperty(value = "索引名称",required = true)
    @NotBlank(message = "索引名称不能为空")
    private String indexName;

    @ApiModelProperty(value = "索引映射",required = false)
    private Map<String,Object> mappings;

    @ApiModelProperty(value = "索引映射",required = false)
    private  Map<String,Object> settings;

}
